package com.lonely.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.common.core.domain.TimeLine;
import com.lonely.order.domain.entity.SysOrderSecondProcessLog;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/8/6 16:07
 * @description: 订单二次工艺日志服务
 */
public interface IOrderSecondProcessLogService extends IService<SysOrderSecondProcessLog> {

    /**
     * 添加日志
     *
     * @param orderSecondProcessId
     * @param title
     * @param body
     */
    void addLog(Long orderSecondProcessId, String title, String body);

    /**
     * 获取指定二次工艺id对应的的日志时间线
     *
     * @param secondProcessId
     * @return
     */
    List<TimeLine> getLogTimeLine(Long secondProcessId);
}
